package Entity;

import java.io.Serializable;

/** this class Create new Instance of category*/

public class CommentReport implements Serializable{

	private static final long serialVersionUID = 42L;
		
	/**attributes for comment report*/
	int TotalCustomers;
	int TotalTime;
	int TotalSales;
	static String [] TotalComments =new String[256];
	static int i=0;

	/** default constructor*/
	public CommentReport()
	{
				
	}
	
	/** get functions*/
	public String [] getTotalComments()
	{
		return CommentReport.TotalComments;
	}
	
	public int getCommentsArraySize()
	{   
		int count=0;
		for(int i=0;i<256;i++)
		{
			if(TotalComments[i]!=null)
				count++;
		}
		return count;
	}
	
	public  int getTotalSales()
	{
		return this.TotalSales;
	}
	
	public  int getTotalCustomers()
	{
		return this.TotalSales;
	}
	
	public  int getTotalTime()
	{
		return this.TotalTime;
	}
		
	/** set functions*/
	public  void setTotalCustomers(int TotalCustomers)
	{
		this.TotalCustomers=TotalCustomers;
	}
	
	public  void setTotalTime(int Time)
	{
		this.TotalTime=TotalTime+Time;
	}
	
	public  void setTotalSales(int TotalSales)
	{
		this.TotalSales=TotalSales;
	}

	/**function which adding new comment into comment list and upgrade the list by 1*/
	public  void AddCommentToList(String Comment)
	{
		TotalComments[i]=Comment;
		i++;	
	}
}